﻿@{
    ViewBag.Title = "会员注册";
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}
@using MvcMall.Portal.Controllers.Account.ViewModels;
@model UserRegisterModel 
@* CSS AND JS -- START *@
<link href="@Url.Content("~/Content/loginRegister.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@* CSS AND JS - END *@
<div class="top_login_nav">
    <div class="top_login_nav_box">
        <ul>
            <li class="top_login_nav_tag">会员注册 </li>
        </ul>
    </div>
</div>
<div class="wrap" >
    @using (Html.BeginForm())
    {
        <table class="register_table" style=" margin:40px 0px 40px 0px; padding:0px;" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <th>
                    @Html.LabelFor(m => m.UserName)：
                </th>
                <td>
                    @Html.TextBoxFor(m => m.UserName, new { @class = "txtInput", @maxlength = "12" })
                    @Html.ValidationMessageFor(m => m.UserName)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(m => m.Password)：
                </th>
                <td>
                    @Html.PasswordFor(m => m.Password, new { @class = "txtInput" })
                    @Html.ValidationMessageFor(m => m.Password)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(m => m.ConfirmPassword)：
                </th>
                <td>
                    @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "txtInput" })
                    @Html.ValidationMessageFor(m => m.ConfirmPassword)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(m => m.Email)：
                </th>
                <td>
                    @Html.TextBoxFor(m => m.Email, new { @class = "txtInput" })
                    @Html.ValidationMessageFor(m => m.Email)
                </td>
            </tr>
            <tr>
                <th>
                    @Html.LabelFor(m => m.ValidCode)：
                </th>
                <td>
                    @Html.TextBoxFor(m => m.ValidCode, new { @class = "txtInput", @style = "width:80px" })
                    <img src="/Base/GetValidCode?t=@DateTime.Now" id=checkCode style="float:left" alt="看不清,换一张" onclick="this.src=this.src+'?'" />
                    <a style="float: left; cursor: pointer" onclick="$('#checkCode').attr('src',$('#checkCode').attr('src')+'?')">
                        看不清,换一张</a>
                    @Html.ValidationMessageFor(m => m.ValidCode)
                </td>
            </tr>
            <tr>
                <th>
                </th>
                <td>
                    <input type="submit" class="btn_submit" value="" />
                </td>
            </tr>
            <tr>
                <th>
                </th>
                <td>
                    <a class="cRedc00" href="#">星汇用户服务协议</a>
                </td>
            </tr>
        </table>
    }
  
</div>
